package com.agileboot.domain.system.user.command;

import com.agileboot.common.annotation.ExcelColumn;
import com.agileboot.common.utils.ValidGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author valarchie
 */
@Data
public class AddUserCommand {

    @ExcelColumn(name = "部门ID")
    private Long deptId;

    @ExcelColumn(name = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ExcelColumn(name = "昵称")
    private String nickname;

    @ExcelColumn(name = "邮件")
    private String email;

    @ExcelColumn(name = "电话号码")
    private String phoneNumber;

    /**
     * 用户性别（0男 1女 2保密）
     */
    @ExcelColumn(name = "性别")
    private Integer sex;

    @ExcelColumn(name = "头像")
    private String avatar;

    @ExcelColumn(name = "密码")
    @NotBlank(message = "密码不能为空",groups = {ValidGroup.Insert.class})
    private String password;

    @ExcelColumn(name = "状态")
    private Integer status;

    @ExcelColumn(name = "角色ID")
    @NotNull(message = "角色不能为空")
    private Long roleId;

    @ExcelColumn(name = "职位ID")
    private Long postId;

    @ExcelColumn(name = "备注")
    private String remark;


//    /**
//     *所属该用户user_id的用户id--及这个用户是user_id用户的下属
//     */
//    private Long branchUserId;


}
